require('./db/connect')
const exp = require('express')
const app = exp()
const router = require('./router')

app.use(exp.json())
app.use(router)

app.listen('5000', (err) => {
  if (err) {
    console.log('服务器开启失败', err)
    return
  }
  console.log('服务器开启成功')
})
